package dev.meow.core;

public class PersonData {

	private String pId;
	private String personInfo;
	private String addr;
	private String expire;
	private byte[] image;

	public String getpId() {
		return pId;
	}

	public void setpId(String pId) {
		this.pId = pId;
	}

	public String getPersonInfo() {
		return personInfo;
	}

	public void setPersonInfo(String personInfo) {
		this.personInfo = personInfo;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getExpire() {
		return expire;
	}

	public void setExpire(String expire) {
		this.expire = expire;
	}

	public byte[] getImage() {
		return image;
	}

	public void setImage(byte[] image) {
		this.image = image;
	}

	@Override
	public String toString() {
		return "PersonData [pId=" + pId + ", personInfo=" + personInfo
				+ ", addr=" + addr + ", expire=" + expire + ", image="
				+ image.length + "]";
	}

	public void writeFile(String path, String fileName) {
		SMCCore.writeFile(path, fileName, image);
	}

}
